package com.css.openapi;

import com.css.common.swagger.config.annotation.EnableCustomKnife4;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.scheduling.annotation.EnableScheduling;

@EnableDiscoveryClient
@EnableFeignClients
@Configuration
@MapperScan(basePackages = {"com.css.openapi.mapper"})
@SpringBootApplication(scanBasePackages = {"com.css.openapi"})
@ComponentScan(basePackages = {
        "com.css.openapi",
        "com.css.common.security.config",
        "com.css.common.core"
})
@EnableScheduling
@EnableCustomKnife4
public class OpenApiApplication {
    public static void main(String[] args) {
        SpringApplication.run(OpenApiApplication.class, args);
    }
}
